﻿/******************************************************************************
 * 创建者：gtts
 * 创建日期：2011.4.10
 * 类名：MouseClickListener
 * 说明：给拖动侦听器提供数据
 ******************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GTTSOfLibrary.EventListener
{
    /// <summary>
    /// 给拖动侦听器提供数据
    /// </summary>
    public class DraggingMoveEventArgs : EventArgs
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="anchor">拖放起始点</param>
        /// <param name="lastLoction">最近一次鼠标拖放位置</param>
        /// <param name="lastOffSet">最后一次鼠标移动量</param>
        public DraggingMoveEventArgs(Point anchor, Point lastLoction, Size lastOffSet)
        {
            this.Anchor = anchor;
            this.LastLoction = lastLoction;
            this.LastOffSet = lastOffSet;
        }

        /// <summary>
        /// 获取拖放起始点
        /// </summary>
        public Point Anchor { get; private set; }

        /// <summary>
        /// 获取最近一次鼠标拖放位置
        /// </summary>
        public Point LastLoction { get; private set; }

        /// <summary>
        /// 获取最后一次鼠标移动量
        /// </summary>
        public Size LastOffSet { get; private set; }

    }
}
